package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同文件对象 cm_contract_files
 * 
 * @author ruoyi
 * @date 2025-11-05
 */
public class CmContractFiles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String contractName;

    /** 关联的模板ID */
    @Excel(name = "关联的模板ID")
    private String templateId;

    /** 学校ID */
    @Excel(name = "学校ID")
    private String schoolId;

    /** 合同文件存储路径 */
    @Excel(name = "合同文件存储路径")
    private String filePath;

    /** 合同开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 合同结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 金额（数字） */
    @Excel(name = "金额", readConverterExp = "数=字")
    private String amount;

    /** 金额（中文） */
    @Excel(name = "金额", readConverterExp = "中=文")
    private String amountChinese;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setContractName(String contractName) 
    {
        this.contractName = contractName;
    }

    public String getContractName() 
    {
        return contractName;
    }

    public void setTemplateId(String templateId) 
    {
        this.templateId = templateId;
    }

    public String getTemplateId() 
    {
        return templateId;
    }

    public void setSchoolId(String schoolId) 
    {
        this.schoolId = schoolId;
    }

    public String getSchoolId() 
    {
        return schoolId;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setAmount(String amount) 
    {
        this.amount = amount;
    }

    public String getAmount() 
    {
        return amount;
    }

    public void setAmountChinese(String amountChinese) 
    {
        this.amountChinese = amountChinese;
    }

    public String getAmountChinese() 
    {
        return amountChinese;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractName", getContractName())
            .append("templateId", getTemplateId())
            .append("schoolId", getSchoolId())
            .append("filePath", getFilePath())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("amount", getAmount())
            .append("amountChinese", getAmountChinese())
            .toString();
    }
}
